<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" type="text/css" href="../static/css/login.css">
  <script src="../static/script/jquery-3.7.1.js"></script>
  <script src="../static/script/registered.js"></script>
  <title>Login</title>
</head>
<body>
<div class="container">
  <h2>注册</h2>
  <form id="register-form" action="/register" method="post">
    <div class="form-group">
      <label for="username">用户名</label>
      <input type="text" id="username" name="username" placeholder="4-16个字符 只能使用英文、数字、下划线和短横线" required>
    </div>
    <div class="form-group">
      <label for="password">密码</label>
      <input type="password" id="password" name="password" placeholder="6-16个字符 只能使用英文、数字、下划线和短横线" required>
    </div>
    <div class="form-group">
      <label for="confirm_password">确认密码</label>
      <input type="password" id="confirm_password" name="confirm_password" placeholder="两次密码需要一致" required>
    </div>
    <div class="form-group">
      <label for="email">邮箱</label>
      <input type="text" id="email" name="email" placeholder="需要符合邮箱格式" required>
    </div>
    <span class="prompt-checkbox">
      <input type="checkbox" id="isAdmin" name="isAdmin" value="true">
      <label for="isAdmin">是否为管理员</label>
    </span>
    <div class="form-group">
      <input type="submit" value="注册">
    </div>
  </form>
  <p>已有账户？ <a href="/pages/login.html">去登录</a></p>
</div>
</body>
</html>
